package cn.tedu.spring.scope;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class TestScope {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext context=new AnnotationConfigApplicationContext("cn.tedu.spring.scope");
        Order order1 = context.getBean(Order.class);
        System.out.println("order:"+order1);

        Order order2= context.getBean(Order.class);
        System.out.println("order:"+order2);
    }
}
